<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>惊喜活动</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/activity/activity.css">
</head>
<body>
    <div class="layout">
        <div class="header">活动</div>
        <div class="activityList">
            <div class="activityItemBox">
                <!-- 动态渲染 -->
            </div>
            <div class="end"><img src="../../static/img/theend@3x.png" alt=""></div>
        </div>
        <div class="menu">
            <ul>
                <li><a href="../../index.html">首页<span class="indexxIcon"></span></a></li>
                <li><a href="../classify/classify.html">分类<span class="classifyIcon"></span></a></li>
                <li><a href="javascript:void(0);">活动<span class="activityIcon"></span></a></li>
                <li><a href="../me/shoppingCar.html">购物车<span class="carIcon"></span></a></li>
                <li><a href="../me/me.html">我<span class="meIcon"></span></a></li>
            </ul>
        </div>
    </div>
    <script type="text/template" id="activityItemBox">
        {{each activityDetail.list as item index}}
        <div class="activityItem" data-id={{item.id}}>
            <div class="acHeader">
                <div class="clock">限时抢购</div>
                {{if item.valid===3&&item.second<0}} 
                <div class="time">
                    <span class="text">活动进行中</span>
                    <span class="hour">00</span>
                    <span class="timeIcon">:</span>
                    <span class="minute">00</span>
                    <span class="timeIcon">:</span>
                    <span class = "second">00</span>
                </div>
                {{/if}} 
                {{if item.valid===2&&item.second>0}} 
                <div class="time">
                    <span class="text">即将开场</span>
                    <span class="hour">00</span>
                    <span class="timeIcon">:</span>
                    <span class="minute">00</span>
                    <span class="timeIcon">:</span>
                    <span class = "second">00</span>
                </div>
                {{/if}} 
                {{if item.valid===4||item.secondMsg}}
                <span class="theend">{{item.secondMsg}}</span> 
                {{/if}}
            </div>
            <div class="acPic"><img src="{{item.pic}}" alt=""></div>
            <div class="acFooter">
                <div class="acMsg">{{item.reviewCount}}</div>
                <div class="acDate">{{item.releaseTime}}</div>
                <div class="thumb">{{item.loveCount}}</div>
            </div>
        </div>
        {{/each}}
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/assets/pullmaster/pull.min.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/activity/activity.js"></script>
</body>
</html>